package com.itheima;

public class MyThreadDemo {
    public static void main(String[] args) {
//        MyThread thread1 = new MyThread();
//        MyThread thread2 = new MyThread();
//
////        thread1.run();
////        thread2.run();
//
//        thread1.setName("高铁");
//        thread2.setName("飞机");

//        MyThread thread1 = new MyThread("高铁");
//        MyThread thread2 = new MyThread("飞机");
//
//        thread1.start();
//        thread2.start();


        System.out.println(Thread.currentThread().getName());
    }
}
